﻿<script language="javascript" type="text/javascript">
    DATE_FORMAT = '@ConfigReader.JSCalendarDateFormat';

    $(document).ready(function () {
        $('.datepicker').each(function () {
        //$(':input[data-datepicker]').each(function () {
            //$('.CalendarTextBox').each(function () {
            $(this).datepicker({
                showOn: 'focus',
                dateFormat: '@ConfigReader.JSCalendarDateFormat',
                changeMonth: true,
                changeYear: true,
                buttonImageOnly: true,
                buttonImage: '@Url.Content("~/Content/Images/Calendar.png")',
                buttonText: ''
            });
        });
    });
</script>  